package com.yyk.yykywd.test.example

/**
 * 文件描述：
 * Created by guo on 2019-12-16.
 */
data class Fish(var name: String)

fun fishExamples() {
    val fish = Fish("splashy")
    myWith(fish.name) {
        println(capitalize())
    }
}

fun main() {
    fishExamples()
}

fun myWith(name: String, block: String.() -> Unit) {
    name.block()
}

